<template>
  <div class="popup flex-center flex-align-items-center">
    <div class="main">
      <div class="main-header">
        <p>加入黑名单原因</p>
        <i class="iconfont icon-guanbi" @click="close"></i>
      </div>
      <div class="detail">
        <el-input v-model="content" type="textarea" class="form-input"></el-input>
        <div class="btns flex">
          <p class="font-14 pointer" @click="close">取消</p>
          <p class="font-14 pointer">确定</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { defineEmits, ref } from 'vue';

const emit = defineEmits(['close']);

const content = ref("");

const close = () => {
  emit('close', null);
}
</script>

<style lang="less" scoped>
.popup {
  .main {
    position: relative;
    width: 420px;
    border-radius: 10px;
    background: #fff;

    .detail {
      padding: 16px 24px;

      .form-input {
        width: 100%;
        height: 96px;

        &::v-deep {
          textarea {
            width: 100%;
            height: 96px;
          }
        }
      }

      .btns {
        padding-top: 20px;
        justify-content: end;

        p {
          width: 70px;
          height: 40px;
          margin-left: 10px;
          border-radius: 4px;
          text-align: center;

          &:first-child {
            border: 1px solid #dcdfe6;
            color: #606266;
            line-height: 38px;
          }

          &:last-child {
            line-height: 40px;
            background: @main-color;
            color: #fff;
          }
        }
      }
    }
  }
}
</style>
